﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Minecraft.Model
{
	public partial class PlayerbasisModel
	{
		/// <summary>
		/// 玩家等级
		/// </summary>
		public int Level_Convert
		{
			get
			{
				//return Convert.ToInt32(Exp);
				return (int)(-2.5 + Math.Sqrt(Exp * 1.0 / 75 + 25.0 / 4)) + 1;
			}
		}
		/// <summary>
		/// 是否登录过
		/// </summary>
		public bool IsLoggedIn_Convert
		{
			get
			{
				return IsLoggedIn == 1 ? true : false;
			}
		}
		/// <summary>
		/// 是否达到可以刷怪的条件
		/// </summary>
		public bool IsCanBrushMonster_Convert
		{
			get
			{
				return IsCanBrushMonster == 1 ? true : false;
			}
		}
	}
}
